﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PlanProd.Contracts.Misc
{
    [DataContract]
    public class ServiceOptions
    {
        [DataMember]
        public bool UsePages { get; set; }

        [DataMember]
        public int PageSize { get; set; }

        [DataMember]
        public int PageNumber { get; set; }

        public int GetSkip()
        {
            return PageSize * PageNumber;
        }

        [DataMember]
        public int UserId { get; set; }

        [DataMember]
        public string UserName { get; set; }
    }
}
